package com.ruoyi.exam.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author Bandit
 * @createTime 2022/11/13 13:21:47
 */
public class ExamPaperVo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 试卷主键 */
    private Long id;

    /** 试卷标题 */
    @Excel(name = "试卷标题")
    private String title;

    /** 试题数量 */
    @Excel(name = "试题数量")
    private Long questionCount;

    /** 试卷开始时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "试卷开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /** 试卷结束时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "试卷结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /** 试卷内容关联id */
    @Excel(name = "试卷内容关联id")
    private Long contentId;

    /**
     * 试题列表
     */
    private List<Long> questionArrays;

    /**
     * 接收数据库内容
     */
    private String content;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long createdBy;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long deleteFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(Long questionCount) {
        this.questionCount = questionCount;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getContentId() {
        return contentId;
    }

    public void setContentId(Long contentId) {
        this.contentId = contentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Long> getQuestionArrays() {
        return questionArrays;
    }

    public void setQuestionArrays(List<Long> questionArrays) {
        this.questionArrays = questionArrays;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Long getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Long deleteFlag) {
        this.deleteFlag = deleteFlag;
    }


    @Override
    public String toString() {
        return "ExamPaperVo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", questionCount=" + questionCount +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", contentId=" + contentId +
                ", questionArrays=" + questionArrays +
                ", content='" + content + '\'' +
                ", createdBy=" + createdBy +
                ", deleteFlag=" + deleteFlag +
                '}';
    }
}
